package com.geekstudy.week10.service;

import com.geekstudy.week10.api.UserApi;
import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


@Component
@DubboService
public class UserService implements UserApi {

    final Logger logger = LoggerFactory.getLogger(UserService.class);

    @Override
    public String findUsername(String userId) {
        logger.info("findUsername userId:{} ", userId);
        String username = "Hello, " + userId + ", Welcome 202109";
        return username;
    }


}
